package com.example.communist_app_api.service;

<<<<<<< HEAD

import com.example.communist_app_api.db.dto.PhotoDTO;
=======
>>>>>>> 党建uniapp/dev
import com.example.communist_app_api.db.dto.PhotoUserDTO;
import com.example.communist_app_api.db.dto.PhotoUserDetailDTO;
import com.example.communist_app_api.db.pojoDto.Photo;
import com.example.communist_app_api.vo.uniapp.req.PhotoShowReq;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface PhotoService {

    Integer createPhoto(String content, Integer userId, List<String> photoUrlList, String title);

    Photo selectPhoto(Integer photoId);

    PhotoUserDetailDTO selectPhotoByPhotoId(Integer photoId);

    List<PhotoUserDTO>  selectAllPhoto(PhotoShowReq photoShowReq,Integer userId);

    List<PhotoUserDetailDTO>  selectPhotoByUserId(PhotoShowReq photoShowReq,Integer userId);

    Integer deletePhotoByPhotoId(Integer photoId);

    PageInfo<PhotoUserDetailDTO> selectAllPhotoByAudit(Integer organizationId, PhotoShowReq req);

    Integer updateAuditPhoto(Integer photoId, Integer auditorId);

    Photo selectPhotoByPhotoIdAndNoAudit(Integer photoId);

    PageInfo<PhotoDTO> selectAllPhotoByWebCondition(Integer pageNum, Integer pageSize, String title, String content, Integer userId);
}
